home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / CH08 / EX8_2B.ASM < prev    next >
Encoding:
Assembly Source File  |  1996-02-07  |  670 b   |  47 lines

  1. ; EX8_2b.asm
  2. ;
  3. ; Example demonstrating the align
  4. ; directive.
  5.  
  6. dseg        segment
  7.  
  8. ; Force an odd location counter
  9. ; within this segment:
  10.  
  11. i        byte    0
  12.  
  13. ; This word is at an odd address,
  14. ; which is bad!
  15.  
  16. j        word    0
  17.  
  18. ; Force the next word to align itself
  19. ; on an even address so we get faster
  20. ; access to it.
  21.  
  22.         align    2
  23. k        word    0
  24.  
  25. ; Force odd address again:
  26.  
  27. k_odd        byte    0
  28.  
  29. ; Align the next entry on a double
  30. ; word boundary.
  31.  
  32.         align    4
  33. l        dword    0
  34.  
  35. ; Align the next entry on a quad
  36. ; word boundary:
  37.  
  38.         align    8
  39. RealVar        real8    3.14159
  40.  
  41. ; Start the following on a paragraph
  42. ; boundary:
  43.  
  44.         align    16
  45. Table        dword    1,2,3,4,5
  46. dseg        ends
  47.         end